 #coding=utf-8
import os
def walk(path,name):
    if name[-1]=='\\':
        for root,dirs,files in os.walk(os.path.join(path,name)):
            for i in range(len(dirs)):
                dirs[i]=dirs[i]+'\\'
            dirs.extend(files)
            return dirs
    else:
        pass



if __name__=='__main__':
    print walk('','c:\\')
    

    